﻿<%@ Page Language="C#" EnableEventValidation="false"  MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="RejectNewsLetter.aspx.cs" Theme="Default" Inherits="webapp4U.UI.Logon" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register TagPrefix="webapp4U" Namespace="webapp4U.UI" %>

<asp:Content ContentPlaceHolderID="PageContent" runat="server">
 
 
 
    <asp:UpdatePanel ID="EmployeesUpdatePanel" runat="server" UpdateMode="Conditional">
        <contenttemplate>
 
 <asp:ValidationSummary runat="server" ID="valChangePasswordSummary"  ShowMessageBox="true" ShowSummary="false" />
            
    <table border="0" align="center" cellpadding="10">
        <tr>
            <td colspan="2">
               <asp:Label runat="server" ID="lblMsg" ForeColor="Blue"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" style="font-weight:bold; text-transform:uppercase; color:Red">
                Từ chối nhận NewsLetter
            </td>
        </tr>
        <tr>
            <td align="left">
                <b>Email: </b>
                <asp:TextBox runat="server" ID="txtEmail" Width="150"></asp:TextBox>
                <asp:RequiredFieldValidator runat="server" 
                        ID="RequiredFieldValidator1" 
                        ControlToValidate="txtEmail" 
                        ErrorMessage="Email not null" 
                        SetFocusOnError="true" Display="none">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ErrorMessage="Invalid Email" SetFocusOnError="true" Display="none" ID="RegEmail" runat="server"
                ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                    
                <asp:Button runat="server" ID="btSubmit" Text="Submit" OnClick="btSubmit_Click" />
            </td>
        </tr>
        <tr>
            <td style="line-height:21px;">
                <u><b>Hướng dẫn:</b> </u> <br />
                Nhập địa chỉ Email của bạn vào form bên trên sau đó nhấn nút [Submit]
                từ lần sau hệ thống sẽ không gởi thư cho bạn nửa.
            </td>
        </tr>
    </table>
    
        </contenttemplate>
    </asp:UpdatePanel>
    
</asp:Content>